package com.zq.assistant.func.ioc.listener;

import android.view.View;
import android.widget.CompoundButton;

/**
 * Created by zhangqiang on 17-7-7.
 */

public enum Listener {

    OnClick("setOnClickListener", View.OnClickListener.class),

    OnCheckedChange("setOnCheckedChangeListener", CompoundButton.OnCheckedChangeListener.class);


    private String setterMethodName;
    private Class  listenerInterface;

    Listener(String setterMethodName, Class listenerInterface) {
        this.setterMethodName = setterMethodName;
        this.listenerInterface = listenerInterface;
    }

    public String getSetterMethodName() {
        return setterMethodName;
    }

    public Class getListenerInterface() {
        return listenerInterface;
    }
}
